<html>
    <head>
        <script src="../dist/yuml-diagram.min.js"></script>
        <script>
            function loadSvg()
            {
                var yumlText = document.getElementById("yuml").value;

                var yuml  = new yuml_diagram();
                var svg = yuml.processYumlDocument(yumlText, false);
                document.getElementById("diag").innerHTML = svg;
            }
        </script>
    </head>

    <body>
        <textarea id="yuml"  rows="15" cols="80"></textarea>
        <button style="display:block;" onclick="loadSvg()">Update</button>
        <div id="diag"></div>
    </body>
</html>
